const Mine = () => import('@/views/mine')
//  用户中心
const UserCenter = () => import('@/views/mine/childComps/UserCenter')
// 修改用户昵称
const ChangeNickName = () => import('@/views/mine/childComps/ChangeNickName')
// 优惠券
const CouponList = () => import('@/views/mine/childComps/CouponList')
// 绿卡会员
const MyVip = () => import('@/views/mine/childComps/MyVip')
// 会员支付
const VipPay = () => import('@/views/mine/childComps/VipPay')
// 我的订单
const MyOrder = () => import('@/views/mine/childComps/MyOrder')

export default {
  name: 'Mine',
  path: 'mine',
  component: Mine,
  children: [
    {
      name: 'UserCenter',
      path: 'userCenter',
      component: UserCenter,
      children: [
        {
          name: 'ChangeNickName',
          path: 'changeNickNmae',
          component: ChangeNickName
        }
      ]
    },
    {
      name: 'CouponList',
      path: 'couponList',
      component: CouponList,
      meta: {
        requireAuth: true
      }
    },
    {
      name: 'MyVip',
      path: 'myVip',
      component: MyVip,
      meta: {
        keepAlive: true,
        requireAuth: true
      }
    },
    {
      name: 'VipPay',
      path: '/vipPay',
      component: VipPay
    },
    {
      name: 'MyOrder',
      path: 'myOrder',
      component: MyOrder,
      meta: {
        requireAuth: true
      }
    }
  ]
}
